<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- Head 标签模板 -->
<head th:fragment="common_head(meta,title,link,style,script)">
    <!--/* Per-page placeholder for additional metas */-->
    <th:block th:replace="${meta}"/>
    <title th:replace="${title}">The awesome application</title>

    <!-- Common styles and scripts -->
    <!--<link rel="stylesheet" type="text/css" media="all" th:href="@{/assets/css/base.css}">-->
    <!--<script type="text/javascript" th:src="@{/assets/ext/jquery-3.2.1-min.js}"></script>-->
    <!--<script type="text/javascript" th:src="@{/assets/js/codergege.js}"></script>-->

    <!--/* Per-page placeholder for additional links */-->
    <th:block th:replace="${link}"/>
    <!--/* Per-page placeholder for additional style */-->
    <th:block th:replace="${style}"/>
    <!--/* Per-page placeholder for additional scripts */-->
    <th:block th:replace="${script}"/>
</head>
<body>
<th:block th:fragment="browser">
<!--[if lt IE 8]>
<H1 class="browserupgrade text-warning">
    你使用的浏览器 <strong>版本太低了</strong>! . 为了最佳视觉体验, 快去
    这里<a href="http://browsehappy.com/">下载最新版本的浏览器</a>吧!
</H1>
<![endif]-->
</th:block>
<header th:fragment="header" class="container">
    <div class="row">
        <div class="col-md-1">
            <a class="btn btn-primary" th:href="@{/}">首页</a>
        </div>
    </div>
</header>
<footer th:fragment="footer" class="container bg-dark text-center">
    <div class="row">
        <div class="col-md-12 text-warning">
            Copyright &copy; 赵波
        </div>
    </div>
    <div class="row">
        <div class="col-md-12 text-danger">
            Email: codergege@163.com
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <p>
                <a id="zhcn" class="btn btn-sm" href="">中文</a>
                <a id="enus" class="btn btn-sm" href="">English</a>
            </p>
        </div>
    </div>
</footer>
<th:block th:fragment="scriptlib">
<!--这里可以放公共 js 库-->
<!--中英文切换 js-->
<script>
    var pageUrl = window.location.pathname
    $("#zhcn").attr("href",pageUrl + "?l=zh_CN")
    $("#enus").attr("href",pageUrl + "?l=en_US")
</script>
</th:block>
</body>
</html>
